package com.lw.entity;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
 *  实体类。
 *
 * @author lw
 * @since 2025年05月07日 16:51:13
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
// 使用 @Schema 替代 @ApiModel
@Schema(name = "TbInterface", description = "接口实体类")
@Table("tb_interface")
public class TbInterface implements Serializable {

    // 添加 @Serial 注解
    @java.io.Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    // 使用 @Schema 替代 @ApiModelProperty
    @Schema(description = "")
    private Integer id;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 编号
     */
    @Schema(description = "编号")
    private String code;

    /**
     * 类型
     */
    @Schema(description = "类型")
    private String type;

    /**
     * 地址
     */
    @Schema(description = "地址")
    private String address;

    /**
     * 端口
     */
    @Schema(description = "端口")
    private Integer port;

    /**
     * 用户服务数量
     */
    @Schema(description = "用户服务数量")
    private Integer userCount;

    /**
     * 服务次数
     */
    @Schema(description = "服务次数")
    private Integer serviceCount;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private String status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * ip
     */
    @Schema(description = "ip")
    private String ip;

    /**
     * 路径
     */
    @Schema(description = "路径")
    private String path;

    /**
     * 参数
     */
    @Schema(description = "参数")
    private String params;

    /**
     * 流量
     */
    @Schema(description = "流量")
    private String trafficKb;

    /**
     * 通讯类型
     */
    @Schema(description = "通讯类型")
    private String commType;

    /**
     * 请求方式
     */
    @Schema(description = "请求方式")
    private String requestMethod;

}
